set(HEADERS event_loop.h zs_timer.h msg_queue.h tcp_conn.h)

set(SOURCES event_loop.cpp zs_timer.cpp msg_queue.cpp tcp_conn.cpp)

include_directories(${PROJECT_SOURCE_DIR}/poco-poco-1.13.2-release/Net/include)
include_directories(${PROJECT_SOURCE_DIR}/poco-poco-1.13.2-release/Foundation/include)
include_directories(${PROJECT_SOURCE_DIR}/debug_log)

add_library(Event STATIC ${HEADERS} ${SOURCES})
target_link_libraries(Event
    ${PROJECT_SOURCE_DIR}/lib/PocoFoundationd.lib
    ${PROJECT_SOURCE_DIR}/lib/PocoNetd.lib
    ${PROJECT_SOURCE_DIR}/lib/ZsLogd.lib)